package com.youpingou.vo;

import lombok.Data;

/**
 * @auther Created by yuanxinqi 
 */
@Data
public class LoginResult extends BaseResult {

    private String token;
    private String name;

    public LoginResult(String token, String name) {
        this.token = token;
        this.name = name;
    }

    public LoginResult(Integer code, String message, Object data, String token, String name) {
        super(code, message, data);
        this.token = token;
        this.name = name;
    }

    public LoginResult(Integer code, String message, Object data) {
        super(code, message, data);
    }

    public static LoginResult error(String message){
        return new LoginResult(1,message,null);
    }
}
